package com.btb.adapter.vo.request;

import java.util.Arrays;
import java.util.List;
import java.util.UUID;

import com.alibaba.fastjson.JSON;
import com.btb.adapter.constant.Constants;
import com.btb.adapter.model.UpChainHero;
import com.btb.adapter.vo.request.PayRequest.PayRequestBuilder;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Builder
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@Data
@ToString
public class Hero {
	private Integer id;
	private String sn;
	private Integer heroArea;
	private Integer grade;
	private String cardImage;
	private String name;
	private Integer season;
	private String cardTips;
	private Long powerValue;
	private Long productionDate;

	public UpChainHero build(final String owner, final String requestId) {
		return UpChainHero.builder()
				.owner(owner)
				.requestId(requestId)
				.clientId(id)
				.sn(sn)
				.heroArea(heroArea)
				.grade(grade)
				.cardImage(cardImage)
				.name(name)
				.status(Constants.UPCHAINHERO_STATUS)
				.season(String.valueOf(season))
				.cardTips(cardTips)
				.powerValue(powerValue)
				.productionDate(productionDate)
				.build();
	}

}
